package com.example.x6.configurationmaintenance.Dialog;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import com.example.x6.configurationmaintenance.R;

public class MessageDialog {
    private final String TAG = getClass().getSimpleName();
    private AlertDialog.Builder builder;
    private Context context;
    private String message = "";

    public MessageDialog(Context context2) {
        this.context = context2;
        this.builder = new AlertDialog.Builder(context2);
        this.builder.setTitle(context2.getResources().getString(R.string.tips));
    }

    public void setMessage(String string) {
        this.builder.setMessage(string);
        this.message = string;
    }

    public void showDialog() {
        this.builder.setMessage(this.message);
        this.builder.setPositiveButton(this.context.getResources().getString(R.string.yes), new DialogInterface.OnClickListener() {
            /* class com.example.x6.configurationmaintenance.Dialog.MessageDialog.AnonymousClass1 */

            public void onClick(DialogInterface dialogInterface, int i) {
            }
        });
        this.builder.show();
    }
}
